<?php

class StudentPlace_Form_StudentSemesterRandGroup extends Sfs_Form
{
    public function init()
    {
        $translate = Zend_Registry::get('Zend_Translate');
        $this->setMethod('post');
        $this->setAttrib('id','groupForm');
        $this->addElement('text','group_name', array(
            'required' => true,
            'label' => 'group_name',
            'size' => 12,
            'filters'    => array('StringTrim','StripTags'),
        ));

        $this->addElement('radio','is_exclusive', array(
             'required' => true,
            'label' => 'is_exclusive',
            'multiOPtions' => array('1'=>'yes','0'=>'no'),
            'filters'    => array('StringTrim'),
            'validators' => array('int')
        ));

        $this->addElement('text','student_numbers', array(
             'required' => true,
            'label' => 'student_numbers',
            'size' => 3,
            'value' => 0,
            'title' => $translate->translate('studemt_numbers_momo'),
            'filters'    => array('StringTrim'),
             'validators' => array('int')
        ));


        $this->addElement('text','classes', array(
        //'required' => true,
            'label' => 'classes',
            'size' => 20,
            'title' => $translate->translate('classes memo'),
            'filters'    => array('StringTrim','StripTags'),
        ));

        $this->addElement('hidden','group_sn',array(
            'decorators' => $this->noElementDecorator,
              'filters'    => array('StringTrim'),
             'validators' => array('int')
        ));

         $this->addElement('submit','submit',array('value'=>'submit'));

    }
}